<?php

namespace Blogger\BlogBundle\Entity;
use Symfony\Component\Validator\Constraints as Assert;

class Consulta
{
    /**
     *
     * @Assert\NotBlank(
     *      message="Ingrese el nombre"
     * )
     */
    private $name;
    /**
     *
     * @Assert\NotBlank(
     *      message="Ingrese el email."
     * )
     * @Assert\Email(
     *      message="Ingrese un email valido."
     * )
     */
    private $email;

    private $subject;
    /**
     *
     * @Assert\NotBlank()
     * @Assert\MinLength(
     *      limit=30,
     *      message="El mensaje debe contener al menos {{ limit }} caracteres."
     *   )
     */
    private $body;

    /**
     * Set name
     *
     * @param string $name
     */
    public function setName($name)
    {
        $this->name = $name;
    }

    /**
     * Get name
     *
     * @return string 
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Set email
     *
     * @param string $email
     */
    public function setEmail($email)
    {
        $this->email = $email;
    }

    /**
     * Get email
     *
     * @return string 
     */
    public function getEmail()
    {
        return $this->email;
    }

    /**
     * Set subject
     *
     * @param string $subject
     */
    public function setSubject($subject)
    {
        $this->subject = $subject;
    }

    /**
     * Get subject
     *
     * @return string 
     */
    public function getSubject()
    {
        return $this->subject;
    }

    /**
     * Set body
     *
     * @param text $body
     */
    public function setBody($body)
    {
        $this->body = $body;
    }

    /**
     * Get body
     *
     * @return text 
     */
    public function getBody()
    {
        return $this->body;
    }
}